#include "highpassfilter_cofficient.h"

highpassfilter_pDelayLinkList highpassfilter_pDelay[8];     // 用于存储每个通道过去时刻滤波后的结果
bool HighPassFilterStatus = false;                          // FIR高通滤波状态标志
uint16_t FIR_Highpassfilter_FilterLength = 867;             // FIR高通滤波器阶数
double   FIR_Highpassfilter_Coefficient[867] =              // FIR高通滤波器权重系数
{
    -1.643474944498e-06,-1.788887312931e-06,-1.941350288637e-06,-2.100981291821e-06,
    -2.267891198975e-06,-2.442183915696e-06,-2.623955944271e-06,-2.813295946437e-06,
    -3.010284301682e-06,-3.21499266153e-06,-3.427483500195e-06,-3.64780966208e-06,
    -3.876013906536e-06,-4.112128450389e-06,-4.356174508663e-06,-4.608161834054e-06,
    -4.868088255601e-06,-5.135939217126e-06,-5.411687315938e-06,-5.69529184237e-06,
    -5.986698320691e-06,-6.285838051985e-06,-6.592627659536e-06,-6.906968637366e-06,
    -7.228746902477e-06,-7.557832351441e-06,-7.894078421951e-06,-8.237321659958e-06,
    -8.587381293045e-06,-8.944058810683e-06,-9.307137552002e-06, -9.6763823018e-06,
    -1.005153889537e-05,-1.043233383293e-05,-1.081847390419e-05,-1.120964582396e-05,
    -1.160551587919e-05,-1.200572958849e-05,-1.240991137446e-05,-1.281766424983e-05,
    -1.322856951796e-05,-1.364218648841e-05,-1.405805220827e-05,-1.44756812101e-05,
    -1.489456527689e-05,-1.531417322507e-05,-1.573395070596e-05,-1.61533200266e-05,
    -1.657167999047e-05,-1.698840575889e-05,-1.740284873369e-05,-1.78143364619e-05,
    -1.822217256302e-05,-1.862563667972e-05,-1.902398445228e-05,-1.941644751778e-05,
    -1.980223353437e-05,-2.018052623139e-05,-2.055048548588e-05,-2.091124742607e-05,
    -2.126192456245e-05,-2.160160594691e-05,-2.192935736054e-05,-2.22442215307e-05,
    -2.254521837758e-05,-2.283134529114e-05,-2.310157743849e-05,-2.335486810254e-05,
    -2.359014905202e-05,-2.380633094348e-05,-2.400230375562e-05,-2.417693725618e-05,
    -2.432908150199e-05,-2.445756737219e-05,-2.456120713512e-05,-2.463879504909e-05,
    -2.468910799716e-05,-2.471090615639e-05,-2.470293370135e-05,-2.466391954248e-05,
    -2.459257809906e-05,-2.448761010713e-05,-2.434770346217e-05,-2.417153409693e-05,
    -2.395776689396e-05,-2.370505663327e-05,-2.341204897454e-05,-2.307738147439e-05,
    -2.269968463791e-05,-2.227758300488e-05,-2.180969627002e-05,-2.129464043733e-05,
    -2.073102900808e-05,-2.011747420221e-05,-1.945258821269e-05,-1.873498449275e-05,
    -1.796327907504e-05,-1.713609192288e-05,-1.625204831254e-05,-1.530978024644e-05,
    -1.430792789645e-05,-1.324514107679e-05,-1.212008074584e-05,-1.093142053625e-05,
    -9.677848312432e-06,-8.358067755095e-06,-6.970799971384e-06,-5.51478513054e-06,
    -3.98878412347e-06,-2.39158024604e-06,-7.219809043835e-07,1.021180657909e-06,
    2.839043612621e-06,4.732717779973e-06,6.703281843758e-06,8.751781549021e-06,
    1.087922788399e-05,  1.3086595247e-05,    1.53748196e-05,1.774479660965e-05,
    2.019737977742e-05, 2.27333785599e-05,2.535355648106e-05,2.805862923704e-05,
    3.084926279596e-05,3.372607149317e-05,3.668961612415e-05,3.974040203616e-05,
    4.287887722033e-05,4.610543040565e-05,4.942038915661e-05, 5.28240179757e-05,
    5.631651641311e-05,5.989801718421e-05,6.356858429773e-05,6.732821119514e-05,
    7.117681890383e-05,7.511425420524e-05,7.914028781999e-05,8.325461261159e-05,
    8.745684181055e-05,9.174650726067e-05,9.612305768941e-05,0.0001005858570036,
    0.0001051341826133,0.0001097672237845, 0.000114484080023,0.0001192837594918,
    0.0001241651774626,0.0001291271548042,0.0001341684165094, 0.000139287590262,
     0.000144483205046,0.0001497536897979,0.0001550973721061,0.0001605124769559,
    0.0001659971255255,0.0001715493340312,0.0001771670126267,0.0001828479643559,
    0.0001885898841624,0.0001943903579566,0.0002002468617421,0.0002061567608033,
    0.0002121173089566,0.0002181256478647,0.0002241788064176,0.0002302737001811,
    0.0002364071309141,0.0002425757861564,0.0002487762388888,0.0002550049472659,
    0.0002612582544246,0.0002675323883673,0.0002738234619243,0.0002801274727931,
    0.0002864403036586,0.0002927577223938,0.0002990753823431,0.0003053888226885,
    0.0003116934688999,0.0003179846332711,0.0003242575155414,0.0003305072036046,
    0.0003367286743057,0.0003429167943261,0.0003490663211583,0.0003551719041699,
    0.0003612280857592,0.0003672293026009,0.0003731698869835,0.0003790440682388,
    0.0003848459742635,0.0003905696331332,0.0003962089748092,0.0004017578329381,
    0.0004072099467442,0.0004125589630149,0.0004177984381789,0.0004229218404767,
    0.0004279225522243,0.0004327938721683,0.0004375290179332,0.0004421211285602,
    0.0004465632671363,0.0004508484235143,0.0004549695171226,0.0004589193998624,
    0.0004626908590955,0.0004662766207168,0.0004696693523152,0.0004728616664182,
    0.0004758461238217,0.0004786152370021,0.0004811614736105,0.0004834772600474,
    0.0004855549851165,0.0004873870037549,0.0004889656408415,0.0004902831950773,
    0.0004913319429409,0.0004921041427123,0.0004925920385683,0.0004927878647433,
    0.0004926838497561,0.0004922722207001,0.0004915452075937,0.0004904950477901,
    0.0004891139904448,0.0004873943010347,0.0004853282659324,0.0004829081970271,
    0.0004801264363952, 0.000476975361013,0.0004734473875126,0.0004695349769769,
    0.0004652306397706,0.0004605269404045,0.0004554165024323,0.0004498920133729,
    0.0004439462296598,0.0004375719816109,0.0004307621784188,0.0004235098131553,
    0.0004158079677901,0.0004076498182183,0.0003990286392943,0.0003899378098693,
    0.0003803708178289,0.0003703212651254, 0.000359782872807,0.0003487494860325,
    0.0003372150790768, 0.000325173760316,0.0003126197771946,0.0002995475211678,
    0.0002859515326166,0.0002718265057333,0.0002571672933716,0.0002419689118587,
    0.0002262265457692,0.0002099355526499, 0.000193091467701,0.0001756900084016,
    0.0001577270790836,0.0001391987754442,0.0001201013889982,0.0001004314114641,
    8.018553908061e-05,5.936067685177e-05,3.795394271631e-05,1.596267163575e-05,
    -6.615580396606e-06,-2.978303243619e-05,-5.354167475386e-05,-7.78932650973e-05,
    -0.0001028393250466,-0.0001283811364698,-0.0001545197380791,-0.0001812559220944,
    -0.0002085902310122,-0.0002365229544882,-0.0002650541263324,-0.0002941835216225,
    -0.0003239106539355,-0.0003542347727041,-0.0003851548606962,-0.0004166696316248,
    -0.0004487775278861,-0.000481476718433,-0.0005147650967823,-0.0005486402791612,
    -0.0005830996027933,-0.0006181401243275,-0.0006537586184106,-0.0006899515764086,
    -0.0007267152052739,-0.0007640454265655,-0.0008019378756197,-0.000840387900876,
    -0.0008793905633577,-0.0009189406363106,-0.0009590326049996,-0.0009996606666653,
    -0.001040818730642,-0.001082500418637,-0.001124699065175,-0.001167407718206,
    -0.001210619139875,-0.001254325807464,-0.001298519914495,-0.001343193371999,
     -0.00138833780996,-0.001433944578915,-0.001480004751733,-0.001526509125554,
    -0.001573448223899,-0.001620812298946,-0.001668591333973,-0.001716775045974,
    -0.001765352888428,-0.001814314054249,-0.001863647478891,-0.001913341843618,
    -0.001963385578945,-0.002013766868228,-0.002064473651427,-0.002115493629025,
    -0.002166814266097, -0.00221842279655, -0.00227030622751,-0.002322451343857,
    -0.002374844712923,-0.002427472689334,-0.002480321419995,-0.002533376849228,
    -0.002586624724048,-0.002640050599581,-0.002693639844621,-0.002747377647317,
    -0.002801249021001,-0.002855238810141,-0.002909331696418,-0.002963512204935,
     -0.00301776471054,-0.003072073444266,-0.003126422499894,-0.003180795840618,
    -0.003235177305819,-0.003289550617947,-0.003343899389498,-0.003398207130093,
    -0.003452457253646,-0.003506633085623,-0.003560717870379,-0.003614694778592,
    -0.003668546914752,-0.003722257324743,-0.003775809003481,-0.003829184902619,
    -0.003882367938314,-0.003935340999048,-0.003988086953496,-0.004040588658453,
    -0.004092828966782,-0.004144790735423,-0.004196456833416,-0.004247810149962,
    -0.004298833602504,-0.004349510144825,-0.004399822775166,-0.004449754544345,
    -0.004499288563886,-0.004548408014144,-0.004597096152427,-0.004645336321107,
    -0.004693111955715,-0.004740406593015,-0.004787203879055,-0.004833487577191,
    -0.004879241576066,-0.004924449897565, -0.00496909670471,-0.005013166309517,
    -0.005056643180794,-0.005099511951879,-0.005141757428321,-0.005183364595487,
    -0.005224318626094,-0.005264604887673, -0.00530420894994,-0.005343116592087,
    -0.005381313809979,-0.005418786823259,-0.005455522082343,-0.005491506275324,
    -0.005526726334754,-0.005561169444326,-0.005594823045424,-0.005627674843566,
    -0.005659712814709,-0.005690925211434, -0.00572130056899,-0.005750827711209,
    -0.005779495756272,-0.005807294122334,-0.005834212533003,-0.005860241022664,
    -0.005885369941646, -0.00590958996124,-0.005932892078541,-0.005955267621144,
     -0.00597670825165,-0.005997205972022,-0.006016753127758,-0.006035342411888,
    -0.006052966868791, -0.00606961989784,-0.006085295256855,-0.006099987065371,
    -0.006113689807724,-0.006126398335944,-0.006138107872454,-0.006148814012584,
    -0.006158512726877,-0.006167200363216,-0.006174873648738,-0.006181529691557,
    -0.006187165982285,-0.006191780395357,-0.006195371190143, -0.00619793701187,
    -0.006199476892331,   0.9937984372333,-0.006199476892331, -0.00619793701187,
    -0.006195371190143,-0.006191780395357,-0.006187165982285,-0.006181529691557,
    -0.006174873648738,-0.006167200363216,-0.006158512726877,-0.006148814012584,
    -0.006138107872454,-0.006126398335944,-0.006113689807724,-0.006099987065371,
    -0.006085295256855, -0.00606961989784,-0.006052966868791,-0.006035342411888,
    -0.006016753127758,-0.005997205972022, -0.00597670825165,-0.005955267621144,
    -0.005932892078541, -0.00590958996124,-0.005885369941646,-0.005860241022664,
    -0.005834212533003,-0.005807294122334,-0.005779495756272,-0.005750827711209,
     -0.00572130056899,-0.005690925211434,-0.005659712814709,-0.005627674843566,
    -0.005594823045424,-0.005561169444326,-0.005526726334754,-0.005491506275324,
    -0.005455522082343,-0.005418786823259,-0.005381313809979,-0.005343116592087,
     -0.00530420894994,-0.005264604887673,-0.005224318626094,-0.005183364595487,
    -0.005141757428321,-0.005099511951879,-0.005056643180794,-0.005013166309517,
     -0.00496909670471,-0.004924449897565,-0.004879241576066,-0.004833487577191,
    -0.004787203879055,-0.004740406593015,-0.004693111955715,-0.004645336321107,
    -0.004597096152427,-0.004548408014144,-0.004499288563886,-0.004449754544345,
    -0.004399822775166,-0.004349510144825,-0.004298833602504,-0.004247810149962,
    -0.004196456833416,-0.004144790735423,-0.004092828966782,-0.004040588658453,
    -0.003988086953496,-0.003935340999048,-0.003882367938314,-0.003829184902619,
    -0.003775809003481,-0.003722257324743,-0.003668546914752,-0.003614694778592,
    -0.003560717870379,-0.003506633085623,-0.003452457253646,-0.003398207130093,
    -0.003343899389498,-0.003289550617947,-0.003235177305819,-0.003180795840618,
    -0.003126422499894,-0.003072073444266, -0.00301776471054,-0.002963512204935,
    -0.002909331696418,-0.002855238810141,-0.002801249021001,-0.002747377647317,
    -0.002693639844621,-0.002640050599581,-0.002586624724048,-0.002533376849228,
    -0.002480321419995,-0.002427472689334,-0.002374844712923,-0.002322451343857,
     -0.00227030622751, -0.00221842279655,-0.002166814266097,-0.002115493629025,
    -0.002064473651427,-0.002013766868228,-0.001963385578945,-0.001913341843618,
    -0.001863647478891,-0.001814314054249,-0.001765352888428,-0.001716775045974,
    -0.001668591333973,-0.001620812298946,-0.001573448223899,-0.001526509125554,
    -0.001480004751733,-0.001433944578915, -0.00138833780996,-0.001343193371999,
    -0.001298519914495,-0.001254325807464,-0.001210619139875,-0.001167407718206,
    -0.001124699065175,-0.001082500418637,-0.001040818730642,-0.0009996606666653,
    -0.0009590326049996,-0.0009189406363106,-0.0008793905633577,-0.000840387900876,
    -0.0008019378756197,-0.0007640454265655,-0.0007267152052739,-0.0006899515764086,
    -0.0006537586184106,-0.0006181401243275,-0.0005830996027933,-0.0005486402791612,
    -0.0005147650967823,-0.000481476718433,-0.0004487775278861,-0.0004166696316248,
    -0.0003851548606962,-0.0003542347727041,-0.0003239106539355,-0.0002941835216225,
    -0.0002650541263324,-0.0002365229544882,-0.0002085902310122,-0.0001812559220944,
    -0.0001545197380791,-0.0001283811364698,-0.0001028393250466,-7.78932650973e-05,
    -5.354167475386e-05,-2.978303243619e-05,-6.615580396606e-06,1.596267163575e-05,
    3.795394271631e-05,5.936067685177e-05,8.018553908061e-05,0.0001004314114641,
    0.0001201013889982,0.0001391987754442,0.0001577270790836,0.0001756900084016,
     0.000193091467701,0.0002099355526499,0.0002262265457692,0.0002419689118587,
    0.0002571672933716,0.0002718265057333,0.0002859515326166,0.0002995475211678,
    0.0003126197771946, 0.000325173760316,0.0003372150790768,0.0003487494860325,
     0.000359782872807,0.0003703212651254,0.0003803708178289,0.0003899378098693,
    0.0003990286392943,0.0004076498182183,0.0004158079677901,0.0004235098131553,
    0.0004307621784188,0.0004375719816109,0.0004439462296598,0.0004498920133729,
    0.0004554165024323,0.0004605269404045,0.0004652306397706,0.0004695349769769,
    0.0004734473875126, 0.000476975361013,0.0004801264363952,0.0004829081970271,
    0.0004853282659324,0.0004873943010347,0.0004891139904448,0.0004904950477901,
    0.0004915452075937,0.0004922722207001,0.0004926838497561,0.0004927878647433,
    0.0004925920385683,0.0004921041427123,0.0004913319429409,0.0004902831950773,
    0.0004889656408415,0.0004873870037549,0.0004855549851165,0.0004834772600474,
    0.0004811614736105,0.0004786152370021,0.0004758461238217,0.0004728616664182,
    0.0004696693523152,0.0004662766207168,0.0004626908590955,0.0004589193998624,
    0.0004549695171226,0.0004508484235143,0.0004465632671363,0.0004421211285602,
    0.0004375290179332,0.0004327938721683,0.0004279225522243,0.0004229218404767,
    0.0004177984381789,0.0004125589630149,0.0004072099467442,0.0004017578329381,
    0.0003962089748092,0.0003905696331332,0.0003848459742635,0.0003790440682388,
    0.0003731698869835,0.0003672293026009,0.0003612280857592,0.0003551719041699,
    0.0003490663211583,0.0003429167943261,0.0003367286743057,0.0003305072036046,
    0.0003242575155414,0.0003179846332711,0.0003116934688999,0.0003053888226885,
    0.0002990753823431,0.0002927577223938,0.0002864403036586,0.0002801274727931,
    0.0002738234619243,0.0002675323883673,0.0002612582544246,0.0002550049472659,
    0.0002487762388888,0.0002425757861564,0.0002364071309141,0.0002302737001811,
    0.0002241788064176,0.0002181256478647,0.0002121173089566,0.0002061567608033,
    0.0002002468617421,0.0001943903579566,0.0001885898841624,0.0001828479643559,
    0.0001771670126267,0.0001715493340312,0.0001659971255255,0.0001605124769559,
    0.0001550973721061,0.0001497536897979, 0.000144483205046, 0.000139287590262,
    0.0001341684165094,0.0001291271548042,0.0001241651774626,0.0001192837594918,
     0.000114484080023,0.0001097672237845,0.0001051341826133,0.0001005858570036,
    9.612305768941e-05,9.174650726067e-05,8.745684181055e-05,8.325461261159e-05,
    7.914028781999e-05,7.511425420524e-05,7.117681890383e-05,6.732821119514e-05,
    6.356858429773e-05,5.989801718421e-05,5.631651641311e-05, 5.28240179757e-05,
    4.942038915661e-05,4.610543040565e-05,4.287887722033e-05,3.974040203616e-05,
    3.668961612415e-05,3.372607149317e-05,3.084926279596e-05,2.805862923704e-05,
    2.535355648106e-05, 2.27333785599e-05,2.019737977742e-05,1.774479660965e-05,
        1.53748196e-05,  1.3086595247e-05,1.087922788399e-05,8.751781549021e-06,
    6.703281843758e-06,4.732717779973e-06,2.839043612621e-06,1.021180657909e-06,
    -7.219809043835e-07,-2.39158024604e-06,-3.98878412347e-06,-5.51478513054e-06,
    -6.970799971384e-06,-8.358067755095e-06,-9.677848312432e-06,-1.093142053625e-05,
    -1.212008074584e-05,-1.324514107679e-05,-1.430792789645e-05,-1.530978024644e-05,
    -1.625204831254e-05,-1.713609192288e-05,-1.796327907504e-05,-1.873498449275e-05,
    -1.945258821269e-05,-2.011747420221e-05,-2.073102900808e-05,-2.129464043733e-05,
    -2.180969627002e-05,-2.227758300488e-05,-2.269968463791e-05,-2.307738147439e-05,
    -2.341204897454e-05,-2.370505663327e-05,-2.395776689396e-05,-2.417153409693e-05,
    -2.434770346217e-05,-2.448761010713e-05,-2.459257809906e-05,-2.466391954248e-05,
    -2.470293370135e-05,-2.471090615639e-05,-2.468910799716e-05,-2.463879504909e-05,
    -2.456120713512e-05,-2.445756737219e-05,-2.432908150199e-05,-2.417693725618e-05,
    -2.400230375562e-05,-2.380633094348e-05,-2.359014905202e-05,-2.335486810254e-05,
    -2.310157743849e-05,-2.283134529114e-05,-2.254521837758e-05,-2.22442215307e-05,
    -2.192935736054e-05,-2.160160594691e-05,-2.126192456245e-05,-2.091124742607e-05,
    -2.055048548588e-05,-2.018052623139e-05,-1.980223353437e-05,-1.941644751778e-05,
    -1.902398445228e-05,-1.862563667972e-05,-1.822217256302e-05,-1.78143364619e-05,
    -1.740284873369e-05,-1.698840575889e-05,-1.657167999047e-05,-1.61533200266e-05,
    -1.573395070596e-05,-1.531417322507e-05,-1.489456527689e-05,-1.44756812101e-05,
    -1.405805220827e-05,-1.364218648841e-05,-1.322856951796e-05,-1.281766424983e-05,
    -1.240991137446e-05,-1.200572958849e-05,-1.160551587919e-05,-1.120964582396e-05,
    -1.081847390419e-05,-1.043233383293e-05,-1.005153889537e-05, -9.6763823018e-06,
    -9.307137552002e-06,-8.944058810683e-06,-8.587381293045e-06,-8.237321659958e-06,
    -7.894078421951e-06,-7.557832351441e-06,-7.228746902477e-06,-6.906968637366e-06,
    -6.592627659536e-06,-6.285838051985e-06,-5.986698320691e-06,-5.69529184237e-06,
    -5.411687315938e-06,-5.135939217126e-06,-4.868088255601e-06,-4.608161834054e-06,
    -4.356174508663e-06,-4.112128450389e-06,-3.876013906536e-06,-3.64780966208e-06,
    -3.427483500195e-06,-3.21499266153e-06,-3.010284301682e-06,-2.813295946437e-06,
    -2.623955944271e-06,-2.442183915696e-06,-2.267891198975e-06,-2.100981291821e-06,
    -1.941350288637e-06,-1.788887312931e-06,-1.643474944498e-06
};
